Controlled Grammatic
نویسنده
چکیده
A new approach to ambiguity of context-free grammars is presented, and within this approach the LL and LR techniques are generalized to solve the following problems for large classes of ambiguous grammars: |Construction of a parser that accepts all sentences generated by the grammar, and which always terminates in linear time. |Identiication of the structural ambiguity: a nite set of pairs of partial parse trees is constructed; if for each pair the two partial parse trees are semantically equivalent, the ambiguity of the grammar is semantically irrelevant. The user may control the parser generation so as to get a parser which nds some speciic parse trees for the sentences. The generalized LL and LR techniques will still guarantee that the resulting parser accepts all sentences and terminates in linear time on all input. 1. INTRODUCTION For unambiguous grammars we have the powerful LL and LR techniques that for large classes can verify their unambiguity and construct complete linear time parsers, i.e. parsers that accept the full languages and terminate in linear time on all inputs. With a new approach to ambiguity we generalize the LL and LR techniques to deal with large classes of ambiguous grammars as well; thus characterizing the ambiguity and constructing complete linear time parsers.
منابع مشابه
Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR
In this paper we present Grammatic – a tool for textual syntax definition. Grammatic serves as a front-end for parser generators (and other tools) and brings modularity and reuse to their development artifacts. It adapts techniques for separation of concerns from ApsectOriented Programming to grammars and uses templates for grammar reuse. We illustrate usage of Grammatic by describing a case st...
متن کاملGrammatic -- a tool for grammar definition reuse and modularity
Grammatic is a tool for grammar definition and manipulation aimed to improve modularity and reuse of grammars and related development artifacts. It is independent from parsing technology and any other details of target system implementation. Grammatic provides a way for annotating grammars with arbitrary metadata (associativity attributes, semantic actions or anything else). It might be used as...
متن کاملWhy are patients with progressive nonfluent aphasia nonfluent?
OBJECTIVE To investigate the cognitive and neural basis for nonfluent speech in progressive nonfluent aphasia (PNFA). BACKGROUND Nonfluent speech is the hallmark feature of PNFA, and this has been attributed to impairments in syntactic processing, motor-speech planning, and executive functioning that also occur in these patients. Patients with PNFA have left inferior frontal atrophy. METHOD...
متن کاملar X iv : h ep - p h / 01 10 07 7 v 1 5 O ct 2 00 1 Thermal fluctuations in the interacting pion gas
We derive the two-particle fluctuation correlator in a thermal gas of π-mesons to the lowest order in an interaction due to a resonance exchange. A dia-grammatic technique is used. We discuss how this result can be applied to event-by-event fluctuations in heavy-ion collisions, in particular, to search for the critical point of QCD. As a practical example, we determine the shape of the rapidity...
متن کاملA fast partial parse of natural language sentences using a connectionist method
The pattern matching capabilities of neural networks can be used to loc ate syntactic constituents of natural lan guage This paper describes a fully auto mated hybrid system using neural nets operating within a grammatic frame work It addresses the representation of language for connectionist processing and describes methods of constraining the problem size The function of the network is brie y...
متن کاملManual for postediting Russian text
The present study is a practical guide to editors who refine partially machine-translated text as a basis for linguistic analysis. The posteditors' tasks are: to code preferred English equivalents, to code English structural symbols, to resolve grammatic properties, and to code syntactic connections (dependencies). A general introduction to the field of machine translation is contained in The R...
متن کامل